package com.shenxuchen.crm.mapper;

import com.shenxuchen.crm.pojo.Transaction;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TransactionMapper {
    void save(Transaction transaction);

    Integer getCount(@Param("search") Map search);

    List getPageData(@Param("start") Integer startIndex,
                     @Param("length") Integer rowsPerPage,
                     @Param("search") Map search);
}
